tests: Unset SOURCE_DATE_EPOCH
authorSimon McVittie <smcv@collabora.com>
Mon, 26 Jul 2021 10:48:45 +0000 (11:48 +0100)
committerSimon McVittie <smcv@debian.org>
Mon, 23 Aug 2021 18:30:23 +0000 (19:30 +0100)
commit4e7c4b16bad1b3f8d87b5ea55c3b24b28c8278d6
tree52f27158ab1d6bf8bade1216ec77e6b3ebf4ca4b
parent6b8b4f37b6d23c7906c4420f64e092c1779c2912
tests: Unset SOURCE_DATE_EPOCH

Some distributions set this during build in order to have reproducible
builds from the same source code: for example, Debian uses the date
from debian/changelog.

However, some of our tests assume that `ostree commit` will result in
a commit with the current date/time, and SOURCE_DATE_EPOCH breaks that
assumption. Unset it for our build-time tests.

Bug: https://github.com/ostreedev/ostree/issues/2405
Signed-off-by: Simon McVittie <smcv@collabora.com>
Applied-upstream: 2021.4, commit:2c5fa2cdb6c304394ca629c959ec53d878f3f93a

Gbp-Pq: Name tests-Unset-SOURCE_DATE_EPOCH.patch
tests/libtest.sh